table of contents
GLUTADDMENUENTRY(3) | Library Functions Manual (local) | GLUTADDMENUENTRY(3) |
NAME¶
glutAddMenuEntry
—
Append an item to the current menu.
LIBRARY¶
OpenGLUT - menus
SYNOPSIS¶
#include
<openglut.h>
void
glutAddMenuEntry
(const
char *label, int
value);
PARAMETERS¶
label
Menu item text
value
Menu item callback value
DESCRIPTION¶
Inserts a given (
label,
value)
pair into the current menu.
label
is the text displayed in the menu;
value
is the identifier received by the callback when the item is selected.
The new entry is added to the end of the menu.
SEE ALSO¶
glutAddSubMenu(3) glutChangeToMenuEntry(3) glutChangeToSubMenu(3) glutRemoveMenuItem(3)